package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import cn.com.api.entity.ApiT_member_entrepreneur;
import cn.com.api.mapper.base.T_member_entrepreneurMapperBase;
import cn.com.util.PageInfo;

//DAO
public interface ApiT_member_entrepreneurMapper extends T_member_entrepreneurMapperBase {

	public List<ApiT_member_entrepreneur> findT_member_entrepreneursByMapListPage(@Param("map") Map map,
			@Param("page") PageInfo page);

	// 根据条件查询企业主的记录集
	public List<Map<String, Object>> findMember_entrepreneursByMap(@Param("map") Map map);

	public List<ApiT_member_entrepreneur> findEntrepreneursByMapListPage(@Param("map") Map map,
			@Param("page") PageInfo page);

	public Integer getInviteEntrepreneurCount(@Param("user_id") String user_id);

	public List<ApiT_member_entrepreneur> findEntreListByFollowTypeListPage(@Param("user_id") String user_id,
			@Param("type") Integer type, @Param("page") PageInfo page);

	public ApiT_member_entrepreneur findMemberEntById(@Param("userId") String id);

	public List<ApiT_member_entrepreneur> findEntreListWithoutRefereeByArea(@Param("area") String area);

	public List<Map<String, Object>> findMember_infoByMap(@Param("map") Map<String, Object> map);

	@Update("UPDATE T_MEMBER_ENTREPRENEUR SET CORP_BRIEF = #{corp_brief,jdbcType=VARCHAR} WHERE ID = #{id}")
	public int updateT_member_entrepreneur_brief(ApiT_member_entrepreneur t_member_entrepreneur);

	public ApiT_member_entrepreneur findMemberEntByUserId(String userId);

}
